//
//  FlickrPhotoCell.m
//  FlickrSearch-UICollectionView
//
//  Created by cygarm on 15/10/13.
//  Copyright © 2015年 cygarm. All rights reserved.
//

#import "FlickrPhotoCell.h"

@implementation FlickrPhotoCell

- (void)awakeFromNib
{
	[super awakeFromNib];
	self.selected = false;
}

- (void)setSelected:(BOOL)selected
{
	// !!!: super一定要调用,否则会导致collectionView:didSelectItemAtIndexPath: And collectionView:didDeselectItemAtIndexPath:失效
	[super setSelected:selected];
	NSLog(@"setSelected:[%d][cell=%p]", selected, self);
	self.backgroundColor = selected ? [UIColor greenColor] : [UIColor blackColor];
}

@end
